<!DOCTYPE html>
<html lang="zh-CN" class="no-js">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0,user-scalable=no,minimal-ui">
		<meta name="applicable-device" content="pc,mobile">
		<title>${webapp.name} - ${webapp.descript} - ${webapp.domain}</title>
		<link rel="profile" href="http://gmpg.org/xfn/11">
		<!--[if lt IE 9]>
            <script src="${webapp.url}wp-content/themes/pure-encore/js/html5.js"></script>
        <![endif]-->
		<meta name="description" content="这只是一个无聊的博客。">
		<link type="image/vnd.microsoft.icon" href="${webapp.url}favicon.ico" rel="shortcut icon">
		<script type="text/javascript" src="${webapp.url}laypage/laypage.js"/>
		<script type="text/javascript">
			!function(a, b, c) {
				function d(a) {
					var c, d, e, f = b.createElement("canvas"),
						g = f.getContext && f.getContext("2d"),
						h = String.fromCharCode;
					if(!g || !g.fillText) return !1;
					switch(g.textBaseline = "top", g.font = "600 32px Arial", a) {
						case "flag":
							return g.fillText(h(55356, 56806, 55356, 56826), 0, 0), f.toDataURL().length > 3e3;
						case "diversity":
							return g.fillText(h(55356, 57221), 0, 0), c = g.getImageData(16, 16, 1, 1).data, d = c[0] + "," + c[1] + "," + c[2] + "," + c[3], g.fillText(h(55356, 57221, 55356, 57343), 0, 0), c = g.getImageData(16, 16, 1, 1).data, e = c[0] + "," + c[1] + "," + c[2] + "," + c[3], d !== e;
						case "simple":
							return g.fillText(h(55357, 56835), 0, 0), 0 !== g.getImageData(16, 16, 1, 1).data[0];
						case "unicode8":
							return g.fillText(h(55356, 57135), 0, 0), 0 !== g.getImageData(16, 16, 1, 1).data[0]
					}
					return !1
				}
				function e(a) {
					var c = b.createElement("script");
					c.src = a, c.type = "text/javascript", b.getElementsByTagName("head")[0].appendChild(c)
				}
				var f, g, h, i;
				for(i = Array("simple", "flag", "unicode8", "diversity"), c.supports = {
						everything: !0,
						everythingExceptFlag: !0
					}, h = 0; h < i.length; h++) c.supports[i[h]] = d(i[h]), c.supports.everything = c.supports.everything && c.supports[i[h]], "flag" !== i[h] && (c.supports.everythingExceptFlag = c.supports.everythingExceptFlag && c.supports[i[h]]);
				c.supports.everythingExceptFlag = c.supports.everythingExceptFlag && !c.supports.flag, c.DOMReady = !1, c.readyCallback = function() {
					c.DOMReady = !0
				}, c.supports.everything || (g = function() {
					c.readyCallback()
				}, b.addEventListener ? (b.addEventListener("DOMContentLoaded", g, !1), a.addEventListener("load", g, !1)) : (a.attachEvent("onload", g), b.attachEvent("onreadystatechange", function() {
					"complete" === b.readyState && c.readyCallback()
				})), f = c.source || {}, f.concatemoji ? e(f.concatemoji) : f.wpemoji && f.twemoji && (e(f.twemoji), e(f.wpemoji)))
			}(window, document, window._wpemojiSettings);
		</script>
		<link rel='stylesheet' id='wpd-css-css' href='${webapp.url}wp-content/plugins/wp-douban-master/assets/css/style.css?ver=1.9' type='text/css' media='screen' />
		<link rel='stylesheet' id='app-css' href='${webapp.url}wp-content/themes/pure-encore/build/css/app.css?ver=1.1.2' type='text/css' media='screen' />
		<link rel='stylesheet' id='wpl-css' href='${webapp.url}wp-content/plugins/wp-alu-master/static/css/style.css?ver=1.0.0' type='text/css' media='all' />
        <link rel='stylesheet' id='wpl-css' href='${webapp.url}wp-content/plugins/wp-alu-master/static/css/style-0.0.2.css?ver=1.0.0' type='text/css' media='all' />
		<script type='text/javascript' src='${webapp.url}wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
		<script type='text/javascript' src='${webapp.url}wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script>
		<script type='text/javascript' src='${webapp.url}wp-content/plugins/pivot-photo/static/js/index.js?ver=1.0'></script>
		<script type='text/javascript' src='${webapp.url}wp-content/plugins/wp-alu-master/static/js/index.js?ver=1.0.0'></script>
	</head>
	<body class="home blog">
		<div id="container" class="site-main surface-container">
            <#
             include "header.html";
             #>
			<div class="layoutMultiColumn-container">
				<div class="layoutMultiColumn layoutMultiColumn--primary">
					<section class="blockGroup homeGroup ajaxlll streamList">
						<h3 class="heading-title">最新文章</h3>
						<#
						 for($blog : $page.results)
						 #>
						<article class="u-clearfix block--list" itemscope="itemscope" itemtype="http://schema.org/Article">
							<a class="block-image" style="background-image:url(http://${webapp.domain}${webapp.contextEx}${sys:ifnull($blog.logo, "/wp-content/themes/pure-encore/images/default.jpg")})" href="${webapp.url}article/${blog.id}"></a>
							<div class="block-content">
								<h2 class="block-title" itemprop="headline">
                                    <a href="${webapp.url}article/${blog.id}">${blog.title}</a>
                                </h2>
								<div class="block-snippet block-snippet--subtitle" itemprop="about">
								    ${tld:omit($blog.content, 56)}
								</div>
								<div class="v-clearfix block-postMetaWrap">
									<div class="block-postMeta">
										${wen:num($blog.click)} 次檢視<span class="middotDivider"></span><time itemprop="datePublished" datetime="${sys:format($blog.createDatetime, null)}">發布於 ${wen:date($blog.createDatetime)}</time>
									</div>
								</div>
							</div>
						</article>
						<#
						 rof;
						 #>
					</section>
<!-- 					<div class="block-more"> -->
<!-- 						<button id="show-more" data-action="getpost" class="button js-action button--small" data-paged="2" data-total="4">加载更多文章</button>  -->
<!-- 					</div> -->
                    <div id="page5"></div>
				</div>
				<div id="secondary" class="layoutMultiColumn layoutMultiColumn--secondary">
					<div class="js-sidebarWrapper">
						<aside id="hot_tags-3" class="widget widget_hot_tags">
							<h3 class="heading-title">热门标签</h3>
							<div class="tag-items">
							    <#
							     print "${tld:tagTop0($, "tagTops", null)}";
							     for($tag : $tagTops)
							     #>
								<a href="${webapp.url}index?t=${tag.name}" class="tag-item" title="${tag.name}"><span>${tag.name}</span></a>
								<#
								 rof;
								 #>
							</div>
						</aside>
						<aside id="hit-posts-2" class="widget widget_hit-posts">
							<h3 class="heading-title">热门推荐</h3>
							<#
							 print "${tld:rnd0($, "rnd", 6)}";
							 #>
							<ul class="list list--withNo">
							    <#
							     for($article : $rnd)
							     #>
								<li class="list-item">
									<div class="list-itemInfo">
										<h4 class="list-itemTitle"><a href="${webapp.url}article/${article.id}">${tld:omit($article.title, 48)}</a></h4>
										<p class="list-itemDescription">${wen:num($article.assess)} 則評論, ${wen:num($article.click)} 次檢視</p>
									</div>
								</li>
								<#
								 rof;
								 #>
							</ul>
						</aside>
						<aside id="comments-2" class="widget widget_comments">
							<h3 class="heading-title">最新评论</h3>
							<ul class="notificationsList">
							 <#
							  print "${tld:lyNew0($, "lyNews", 6)}";
							  for($ly : $lyNews)
							  #>
								<li class="notificationsList-item">
									<div class="notificationsList-userAvatarIcon"><img alt="" src="${webapp.url}assets/tou/${ly.img}" srcset="${webapp.url}assets/tou/${ly.img}" class="avatar avatar-40 photo" height="40" width="40"/></div>
									<a class="notificationsList-button" rel="nofollow" href="${webapp.url}article/${ly.articleId}#comment-${ly.id}">
										${tld:omit($ly.content, 48)}
										<span class="notificationsList-meta"><span class="cute">${ly.author}</span> 發布於 ${wen:date($ly.createDatetime)}</span>
									</a>
								</li>
							 <#
							  rof;
							  #>
							</ul>
						</aside>
						<footer class="footer">
							<p style="text-align: center;">
								<a title="关于" href="${webapp.url}about">关于</a>
								<a title="友情链接" href="${webapp.url}link">链接</a>
								<a title="登入" href="${webapp.url}admin/login.html">登录</a>
							</p>
						</footer>
					</div>
				</div>
			</div>
            <#
             include "footer.html";
             #>
		</div>
		<div class="backup">
			<svg viewBox="0 0 32 32" width="32" height="32" class="svgIcon">
				<use class="svgIcon-use" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${webapp.url}wp-content/themes/pure-encore/images/icons.svg#svg-up">
			</svg>
		</div>
		<script type="text/javascript" src="${webapp.url}wp-content/themes/pure-encore/build/js/app.js?ver=1.1.2"></script>
		<script type="text/javascript" src="${webapp.url}wp-includes/js/wp-embed.min.js?ver=4.5.3"></script>
		<script>
			laypage({
			    cont: 'page5', //容器。值支持id名、原生dom对象，jquery对象,
			    pages: ${page.totalPage}, //总页数
			    curr:${page.currentPage},
			    first: false,
			    last: false,
			    jump:function(obj,first){
			    	if(!first){
			    		window.location.href = "${webapp.url}${page.urlNoP}?p=" + obj.curr;
			    	}
			    }
			});
		</script>
</body>
</html>